package com.baizhi.mapper;

import com.baizhi.entity.Section;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SectionMapper {

    public void insertSection(Section section);

    public void deleteById(Integer id);
    public void deleteAnySection(@Param("ids")List<Integer> ids);

    public void updateSection(Section section);

    public List<Section> selectSection(@Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize,@Param("search")String search);

    public int countRows(String search);

    List<Section> selectAll();

}
